package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Member;
import com.itheima.pojo.Order;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/*预约订单管理*/
public interface ReservationOrderManagementDao {

    /*查询预约管理内容*/
    public Page<Map<String,Object>> conditionFindSAll(String queryString);

    public List<Setmeal> findAll();

    public void add(Member member);

    public void setmemberAndsetsetmeal(Order order);


    void deleteByGId(int id);

    public void update(Order order);


    public List<Setmeal> findById(Integer id);

    //修改会员信息
    void editm(Member member);

    //修改订单信息
    void edito(Map<String, Object> hsMap);


    void addOrder(Map<String, Object> map);


    //通过ID获取信息
    Order findOrderById(Integer id);

    //修改预约状态
    void editStatus(@Param("id") Integer id, @Param("status") String status);
}

